import requests from '@/api/request'
export default {
  // 查询
  queryOpinionList (data) {
    return requests({
      url: `/v1/api/backend/opinion/findAllList`,
      method: 'post',
      data
    })
  },
  // 更新意见反馈状态
  sendOpinionStatus (data) {
    return requests({
      url: `/v1/api/backend/opinion/updateStatus`,
      method: 'post',
      data
    })
  },
  // 根据id查询反馈详情
  getOpinionDetails (data) {
    return requests({
      url: `/v1/api/backend/opinion/queryById?id=${data}`,
      method: 'post'
    })
  },
  // 批量操作
  batchOperator (data) {
    return requests({
      url: `/v1/api/backend/opinion/batchOperate`,
      method: 'post',
      data
    })
  }
}
